#ifndef _IO_DEF_H_
#define _IO_DEF_H_

#include "driver/gpio.h"

/* ARDUINO 功能定义 */
#define D0  43
#define D1  44
#define D2  5
#define D3  6
#define D4  7
#define D5  8
#define D6  9
#define D7  10
#define D8  17
#define D9  18
#define D10 21
#define D11 38
#define D12 47
#define D13 48


#define A0  1
#define A1  2
#define A2  3
#define A3  4
#define A4  11
#define A5  12

/* WIFICAN 功能定义 */
#define LED_RX  D0
#define LED_TX  D1
#define LED_RDY D2
#define LED_SCA D3
#define LED_WRT D4
#define LED_ERR D5
#define LED_SUC D6
#define LED_OFF D7
#define LED_5   D8
#define LED_4   D9
#define LED_3   D10
#define LED_2   D11
#define LED_1   D12
#define LED_RUN D13

#define TWAI_TX 15
#define TWAI_RX 16

#define MCP_CS      35
#define MCP_MISO    36
#define MCP_MOSI    37
#define MCP_SCK     39
#define MCP_INT     40

#define USB_DP      20
#define USB_DN      19

#endif
